home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
orbitrax.swf
/
scripts
/
DefineSprite_1013
/
frame_1
/
PlaceObject2_409_9
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2010-11-09
|
802b
|
29 lines
onClipEvent(load){
gameMain.addObjIfHit(this,"hitZone","hitArray");
gameMain.hitArray.push(this);
gameMain.finishLine = this;
hitFct = function()
{
for(var _loc1_ in gameMain.hitArray)
{
gameMain.hitArray[_loc1_].hitAction = gameMain.hitArray[_loc1_].hitFct;
}
if(gameMain.tcount == 3)
{
gameMain.tcount = 0;
gameMain.turn = gameMain.turn + 1;
gameMain.bumpSnd.gotoAndPlay("newTurn");
if(gameMain.turn >= gameMain.turnTotal)
{
main.stopGame("user");
}
}
hitAction = undefined;
};
if(gameMain.swapObj.getDepth() < gameMain.elementMap.getDepth())
{
gameMain.elementMap.swapDepths(gameMain.swapObj);
}
hitAction = hitFct;
}